home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / softwareupdate / system / amigados / filefunctions / examples.doc < prev    next >
Text File  |  1996-10-10  |  1KB  |  36 lines

  1. 3  FILE FUNCTIONS - EXAMPLES
  2.  
  3. Example 1
  4.   This example demonstrates how to create a directory called
  5.   "MyDirectory" on the RAM disk.
  6.  
  7. Example 2
  8.   This example demonstrates how to rename files and
  9.   directories. It will rename a file on the Ram disk called
  10.   "HighScore.dat" to "Numbers.dat". It will also rename the
  11.   directory the previous Example created ("MyDirectory") to
  12.   "NewDirectory". (Please run Example 1 in the "Files" chapter
  13.   to create the "HighScore.dat" file before you run this
  14.   example.)
  15.  
  16. Example 3
  17.   This example demonstrates how to delete files and
  18.   directories. It will delete the file and directory which we
  19.   renamed in the previous example.
  20.  
  21. Example 4
  22.   This example demonstrates how to attach a comment to a file.
  23.   The commend will be attached to a file on the Ram disk called
  24.   "HighScore.dat". (Please run Example 1 in the "Files" chapter
  25.   to create this file before you run this example.) Too see the
  26.   comment you can use the Shell (CLI) command "List". Simply
  27.   open a Shell window and type "List Ram:" (without quotations)
  28.  
  29. Example 5
  30.   This example demonstrates how to alter the protection flags
  31.   on a file. The file we used in the previous example
  32.   "HighScore.dat" will be protected and we will then try to
  33.   delete it (unsuccessfully). We will then unprotect the file
  34.   and try to delete it again (this time successfully).
  35.  
  36.